package com.zhoux.basics;

import java.util.Scanner;

/**
 * @author taoyi
 * @version 1.0
 * @date 2021/3/3 9:20
 */
public class ScoreLevel {
    public static void main(String[] args) {
        Scanner in =new Scanner(System.in);
        System.out.print("请输入成绩：");
        int score=in.nextInt();
        if(score<0 || score >100){
            System.out.println("成绩不合法！");
        }else if (score>=90){
            System.out.println("A");
        }else if (score>=80){
            System.out.println("B");
        }else if (score>=60){
            System.out.println("C");
        }else {
            System.out.println("D");
        }
    }
}

